package com.yangwudi.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
//方式二:通过@ConfigurationProperties注解批量将多个属性注入到bean对象中 属性较多，考虑复用时使用
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliyunOSSProperties {
    private String endpoint;
    private String bucketName;
    private  String region;

}
